package br.com.sgc.entities.geral;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(schema = "geral")
public class ExamePaciente implements Serializable {

	private static final long serialVersionUID = 2021663714912256043L;
	
	@Id
	@SequenceGenerator(sequenceName="geral.seq_exame_paciente", name="SEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,  generator="SEQ")
	private Long id;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ficha_paciente_id")
	private FichaPaciente ficha;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "exame_id")
	private Exame exame;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public FichaPaciente getFicha() {
		return ficha;
	}
	public void setFicha(FichaPaciente ficha) {
		this.ficha = ficha;
	}
	public Exame getExame() {
		return exame;
	}
	public void setExame(Exame exame) {
		this.exame = exame;
	}

	
	
	

}
